# -*- coding: utf-8 -*-
#  全局变量
# @Time    ： 2021/11/20  11:51
# @Auther  ： 徐良
# File     :  globalvar.py


def init():
    global _global_dict
    _global_dict = {}

def setValue(name, value):
    _global_dict[name] = value

def getValue(name, defValue=None):
    try:
        return _global_dict[name]
    except KeyError:
        return defValue




